import { RouteRecordRaw } from 'vue-router'

const lawyerRoutes: Array<RouteRecordRaw> = [
  {
    path: '/lawyer',
    redirect: '/lawyer/lawfirm',
    name: 'Lawyer',
    meta: { title: '律所管理', icon: 'lawyer' },
    children: [
      {
        path: 'lawfirm',
        component: () => import('../views/lawyer/Lawfirm.vue'),
        name: 'Lawfirm',
        meta: { title: '律所管理', icon: 'lawfirm' },
      },
      {
        path: 'lawyer',
        component: () => import('../views/lawyer/LawyerListView.vue'),
        name: 'LawyerList',
        meta: { title: '律师管理', icon: 'lawyer' },
      },
    ],
  },
]

export default lawyerRoutes
